import axios from "axios"

export const uploadFileRequest = (url, params) => {
    return axios({
        method: 'post',
        url: url,
        data: params,
        headers: {
            'Content-Type': 'multipart/form-data',
            'Authorization': localStorage.getItem("token")
        }
    })
}

export const registerRequest = (url, params) => {
    return axios({
        method: 'post',
        url: url,
        data: params,
        headers: {
            'Content-Type': 'application/json;charset=utf-8'
        }
    })
}